beta and gamma functions engineering mathematics